Release 10.1A: OpenEdge Application Server:
Developing WebSpeed Applications
Subtransactions
A subtransaction is started when a database transaction is already active and WebSpeed encounters a subtransaction block. If an error occurs during a subtransaction, all the work done since the beginning of the subtransaction is undone. Subtransactions can be nested within other subtransactions.
The following are subtransaction blocks:
- A procedure block that is run from a transaction block in another procedure.
- Each iteration of a
FOREACHblock nested within a transaction block.- Each iteration of a
REPEATblock nested within a transaction block.- Each iteration of a
DOTRANSACTION,DOON ERROR, orDOONENDKEYblock. (These blocks are discussed later in this chapter.)Table 8–1 shows when database transactions and subtransactions are started.
Note that data handling statements that cause WebSpeed to automatically start a transaction for a database table do not cause WebSpeed to automatically start a transaction for a work table or temporary table.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |